/*
 * json.h
 *
 *  Created on: 4 mei 2013
 *      Author: Pascal
 */

#ifndef JSON_H_
#define JSON_H_

#include "sensors.h"
#include "cJson/cJSON.h"

int createAlarmJson(char [], char [], char []);
int sensorsToJson(struct AnalogSensor[], int, struct AnalogSensor[], int, struct BinarySensor[], int,
		char[]);
int analogSensorToJson(struct AnalogSensor *, char[]);
int binarySensorToJson(struct BinarySensor *, char[]);
int analogSensorsToJsonArray(struct AnalogSensor[], int, struct AnalogSensor[], int, char[]);
int binarySensorsToJsonArray(struct BinarySensor[], int, char[]);
int parseAlarmChangeJson(char *, struct AnalogAlarmChangeStruct *, struct BinaryAlarmChangeStruct *);

#endif /* JSON_H_ */
